﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace qlsv
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        private void button3_Click(object sender, RoutedEventArgs e)
        {
            float a = float.Parse(txta.Text);
            float b = float.Parse(txtb.Text);
            float kq = a + b;
            lblkq.Content = kq;
        }

        private void btnxoa_Click(object sender, RoutedEventArgs e)
        {
            txta.Text = "";
            txtb.Text = "";
            lblkq.Content = "";
        }

        private void btnthoat_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }

        private void button4_Click(object sender, RoutedEventArgs e)
        {
            float a = float.Parse(txta.Text);
            float b = float.Parse(txtb.Text);
            float kq = a - b;
            lblkq.Content = kq;
        }

        private void button5_Click(object sender, RoutedEventArgs e)
        {
            float a = float.Parse(txta.Text);
            float b = float.Parse(txtb.Text);
            float kq = a * b;
            lblkq.Content = kq;
            ;
        }

        private void button6_Click(object sender, RoutedEventArgs e)
        {
            float a = float.Parse(txta.Text);
            float b = float.Parse(txtb.Text);
            float kq = a / b;
            lblkq.Content = kq;
        }
    }
}
